package com.eduhzy.ttw.commonsdk.entity;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * Date:2018/7/16
 * Time:10:06
 * @author xubo
 */
public class ClassStudentData implements Parcelable {
    private String id;
    private String userName;
    private String realName;
    private String groupId;
    private String userType;
    private String groupName;
    private String oldUserName;
    private String dbcId;
    private String question;
    private String idcard;
    private String status;
    private String tempAvatar;
    private boolean select;
    private boolean delete;

    public String getTempAvatar() {
        return tempAvatar;
    }

    public void setTempAvatar(String tempAvatar) {
        this.tempAvatar = tempAvatar;
    }

    public boolean isDelete() {
        return delete;
    }

    public void setDelete(boolean delete) {
        this.delete = delete;
    }

    public boolean isSelect() {
        return select;
    }

    public void setSelect(boolean select) {
        this.select = select;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getRealName() {
        return realName;
    }

    public void setRealName(String realName) {
        this.realName = realName;
    }

    public String getGroupId() {
        return groupId;
    }

    public void setGroupId(String groupId) {
        this.groupId = groupId;
    }

    public String getUserType() {
        return userType;
    }

    public void setUserType(String userType) {
        this.userType = userType;
    }

    public String getGroupName() {
        return groupName;
    }

    public void setGroupName(String groupName) {
        this.groupName = groupName;
    }

    public String getOldUserName() {
        return oldUserName;
    }

    public void setOldUserName(String oldUserName) {
        this.oldUserName = oldUserName;
    }

    public String getDbcId() {
        return dbcId;
    }

    public void setDbcId(String dbcId) {
        this.dbcId = dbcId;
    }

    public String getQuestion() {
        return question;
    }

    public void setQuestion(String question) {
        this.question = question;
    }

    public String getIdcard() {
        return idcard;
    }

    public void setIdcard(String idcard) {
        this.idcard = idcard;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public ClassStudentData() {
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(this.id);
        dest.writeString(this.userName);
        dest.writeString(this.realName);
        dest.writeString(this.groupId);
        dest.writeString(this.userType);
        dest.writeString(this.groupName);
        dest.writeString(this.oldUserName);
        dest.writeString(this.dbcId);
        dest.writeString(this.question);
        dest.writeString(this.idcard);
        dest.writeString(this.status);
        dest.writeString(this.tempAvatar);
        dest.writeByte(this.select ? (byte) 1 : (byte) 0);
        dest.writeByte(this.delete ? (byte) 1 : (byte) 0);
    }

    protected ClassStudentData(Parcel in) {
        this.id = in.readString();
        this.userName = in.readString();
        this.realName = in.readString();
        this.groupId = in.readString();
        this.userType = in.readString();
        this.groupName = in.readString();
        this.oldUserName = in.readString();
        this.dbcId = in.readString();
        this.question = in.readString();
        this.idcard = in.readString();
        this.status = in.readString();
        this.tempAvatar = in.readString();
        this.select = in.readByte() != 0;
        this.delete = in.readByte() != 0;
    }

    public static final Creator<ClassStudentData> CREATOR = new Creator<ClassStudentData>() {
        @Override
        public ClassStudentData createFromParcel(Parcel source) {
            return new ClassStudentData(source);
        }

        @Override
        public ClassStudentData[] newArray(int size) {
            return new ClassStudentData[size];
        }
    };
}